﻿using System;
using System.Web.Mvc;

namespace VladanStrigoNET.Samples.Blogged
{
    public class WindsorControllerFactory : IControllerFactory
    {
        public IController CreateController(RequestContext context, Type controllerType)
        {
            return IoC.Resolve(controllerType) as IController;
        }
    }
}
